import request from '@/utils/request'
// http://localhost:8081/system/quantify/list


// 查询定量计算列表
export function getQuantify(query) {
    return request({
        url: '/system/quantify/list',
        method: 'get',
        params: query
    })
}

// 查询定量计算详情  http://localhost:8081
export function getQuantifyInfo(query) {
    return request({
        // url: '/system/delivery/list',
        url: '/system/compute/list',
        method: 'get',
        params: query
    })
}

// 查询定量计算详情 
export function getQuantifyOrder(query) {
    return request({
        // url: '/system/delivery/list',
        url: '/system/computeDetail/list',
        method: 'get',
        params: query
    })
}

// 根据算量详情查询采购列表 
export function getComputeList(query) {
    return request({
        // url: '/system/delivery/list',
        url: '/system/compute/list',
        method: 'get',
        params: query
    })
}

// 添加定量计算
export function addQroject(query) {
    return request({
        url: '/system/project',
        method: 'post',
        data: query
    })
}


// 编辑定量计算
export function editDelivery(query) {
    return request({
        url: '/system/delivery',
        method: 'put',
        data: query
    })
}

